﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SPWebShell
{
    /// <summary>
    /// Represents an item in a document library. Holds key properties only
    /// </summary>
    //public class SPDoclibItem
    //{
    //    public int SPID { get; set; }
    //    public string Title { get; set; }
    //    public DateTime Created { get; set; }
    //    public DateTime Modified { get; set; }
    //    public string ModifiedBy { get; set; }
    //    public string CreatedBy { get; set; }
    //    public int FileSize { get; set; }
    //    /// <summary>
    //    /// Returns the name of the file or folder (maps to ows_FileLeafRef)
    //    /// </summary>
    //    public string Name { get; set; }
    //    /// <summary>
    //    /// Returns True if the item is a folder.(maps to ows_FSObjType=1 for folder,=0 for file)
    //    /// </summary>
    //    public bool IsFolder { get; set; }
    //    /// <summary>
    //    /// Gives the server relative URL. (maps to ows_FileRef)
    //    /// </summary>
    //    public string ServerRelativeUrl { get; set; }
    //    /// <summary>
    //    /// Returns the URL relative to the site. Includes the document library name in the URL.
    //    /// </summary>
    //    public string RelativeUrl { get; set; }


    //    public string AbsoluteUrl { get; set; }
    //}
    public class SPDoclibItem : entity.SPListItem
    {
        public int FileSize { get; set; }
        /// <summary>
        /// Returns True if the item is a folder.(maps to ows_FSObjType=1 for folder,=0 for file)
        /// </summary>
        public bool IsFolder { get; set; }
        /// <summary>
        /// Gives the server relative URL. (maps to ows_FileRef)
        /// </summary>
        public string ServerRelativeUrl { get; set; }
        /// <summary>
        /// Returns the URL relative to the site. Includes the document library name in the URL.
        /// </summary>
        public string RelativeUrl { get; set; }


        public string AbsoluteUrl { get; set; }
    }
}
